package ywpt.model;

import java.util.HashSet;
import java.util.Set;


public class Query implements java.io.Serializable {
	
	private static final long	serialVersionUID	= -569761421494198770L;
	private Long	id;
	private String	queryCode;
	private String	queryName;
	private String	description;
	private Set<QueryField>		TQueryFields	= new HashSet<QueryField>(0);

	// Constructors
	/** default constructor */
	public Query() {
	}

	/** full constructor */
	public Query(String queryCode, String queryName, String description, Set<QueryField> TQueryFields) {
		this.queryCode = queryCode;
		this.queryName = queryName;
		this.description = description;
		this.TQueryFields = TQueryFields;
	}

	// Property accessors
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getQueryCode() {
		return this.queryCode;
	}

	public void setQueryCode(String queryCode) {
		this.queryCode = queryCode;
	}

	public String getQueryName() {
		return this.queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<QueryField> getTQueryFields() {
		return this.TQueryFields;
	}

	public void setTQueryFields(Set<QueryField> TQueryFields) {
		this.TQueryFields = TQueryFields;
	}
}